import requests
import execjs

headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36',
}
js_compile = execjs.compile(open('swgc.js', 'r', encoding='utf-8').read())
#研究报告
json_data = {
    'current': 1,
    'size': 8,
}
response = requests.post('https://app.swguancha.com/client/v1/researchReport/searchByPage', headers=headers,
                     json=json_data)
result = js_compile.call('decrypt_data', response.text)
print(result)
